﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Abp.Organizations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.TransferCardLog
{
    /// <summary>
    /// 划卡计录
    /// </summary>
    public class TransferCardLog : Entity, IHasCreationTime, IMustHaveOrganizationUnit
    {
        public const int MaxTitleLength = 256;
        public const int MaxDescriptionLength = 64 * 1024;//64kb

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 当前负责人所在的OU
        /// </summary>
        public long OrganizationUnitId { get; set; }

        /// <summary>
        /// 数据Id（主键）
        /// </summary>
        public Guid R_Id { get; set; }

        public string UCCID { get; set; }

        [MaxLength(MaxDescriptionLength)]
        public string Remark { get; set; }

        /// <summary>
        /// 代理商
        /// </summary>
        public string AgentCode { get; set; }

        /// <summary>
        /// 开始号段
        /// </summary>
        public string UccidStart { get; set; }

        /// <summary>
        /// 结果号段
        /// </summary>
        public string UccidEnd { get; set; }

        public string OwnerId { get; set; }
    }
}
